// src/services/Zcart.ts
import { http } from '@/utils/http'

/**
 * 添加购物车项
 * @param data 请求体参数
 * @param page 分页页码
 * @param size 分页大小
 */
export const postShopCartAPI = (
  data: {
    meal_id: number
    meal_name: string
    meal_spec: string
    count: number
  },
  page: string,
  size: string
) => {
  return http({
    method: 'POST',
    url: `https://www.tuancanyouwo.cn:8897/shop/cart?page=${page}&size=${size}`,
    data,
  })
}
